package com.zoro.dyformservice.support.type;

import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.util.ArrayList;

/**
 * @author zhaoxingwu
 */
public class ArrayListParameterizedType implements ParameterizedType {

    private final Class<?> aClass;

    public ArrayListParameterizedType(Class<?> aClass) {
        this.aClass = aClass;
    }

    @Override
    public Type[] getActualTypeArguments() {
        return new Type[]{aClass};
    }

    @Override
    public Type getRawType() {
        return ArrayList.class;
    }

    @Override
    public Type getOwnerType() {
        return null;
    }
}
